package com.jrx.anytxn.customer.dto.bankcardinfo;

import com.jrx.anytxn.common.constant.RegexConstant;
import com.jrx.anytxn.customer.dto.BaseApiReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * 银行卡解绑请求参数
 *
 * @author Yangxin
 * @date 2019-08-06 15:32
 **/
@ApiModel(description="银行卡解绑请求参数BankCardUnBindReq")
public class BankCardUnBindReq extends BaseApiReq implements Serializable {

    private static final long serialVersionUID = 8846470934151158267L;
    /**
     * 银行卡号
     * 表字段:cardNumber
     */
    @ApiModelProperty(value="银行卡号",example="6228480028285917000",required=true)
    @NotNull(message = "银行卡解绑API请求银行卡号不能为空")
    @Pattern(regexp = RegexConstant.BANKCARD_NUMBER,message = "银行卡号格式不正确(15或者19位)")
    private String cardNumber;


    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    @Override
    public String toString() {
        return "BankCardUnBindReq{" +
                "cardNumber='" + cardNumber + '\'' +
                '}';
    }
}
